package com.skyline.base.model;

import java.util.Date;

import com.skyline.base.type.ShareType;
import com.skyline.common.cache.Cachable;
import com.skyline.common.util.CommonUtils;

/**
 * 分享的POJO
 * 
 * @author jairus
 * 
 * @version 0.1
 * 
 */
public class Share implements  Cachable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1940390760455522253L;
	private Long id;
	private Long sharerId;
	private String sharerNickname;
	private String sharerPortrait;
	private ShareType shareType;
	private Long resourceId;
	private String resourceTitle;
	private String resourceDigest;
	private String resourceContent;
	private Long resourceOwnerId;
	private String resourceOwnerNickname;
	private String resourceOwnerPortrait;
	private Long resourceSourceId;
	private String resourceSoureceName;
	private Date createTime;
	private Integer commentNum;
	private Integer shareNum;
	private Integer up;
	private Integer down;
	private Integer totalShareNum;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSharerId() {
		return sharerId;
	}

	public void setSharerId(Long sharerId) {
		this.sharerId = sharerId;
	}

	public String getSharerNickname() {
		return sharerNickname;
	}

	public void setSharerNickname(String sharerNickname) {
		this.sharerNickname = sharerNickname;
	}

	public String getSharerPortrait() {
		return sharerPortrait;
	}

	public void setSharerPortrait(String sharerPortrait) {
		this.sharerPortrait = sharerPortrait;
	}

	public ShareType getShareType() {
		return shareType;
	}

	public void setShareType(ShareType shareType) {
		this.shareType = shareType;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public String getResourceTitle() {
		return resourceTitle;
	}

	public void setResourceTitle(String resourceTitle) {
		this.resourceTitle = resourceTitle;
	}

	public String getResourceDigest() {
		return resourceDigest;
	}

	public void setResourceDigest(String resourceDigest) {
		this.resourceDigest = resourceDigest;
	}

	public String getResourceContent() {
		return resourceContent;
	}

	public void setResourceContent(String resourceContent) {
		this.resourceContent = resourceContent;
	}

	public Long getResourceOwnerId() {
		return resourceOwnerId;
	}

	public void setResourceOwnerId(Long resourceOwnerId) {
		this.resourceOwnerId = resourceOwnerId;
	}

	public String getResourceOwnerNickname() {
		return resourceOwnerNickname;
	}

	public void setResourceOwnerNickname(String resourceOwnerNickname) {
		this.resourceOwnerNickname = resourceOwnerNickname;
	}

	public String getResourceOwnerPortrait() {
		return resourceOwnerPortrait;
	}

	public void setResourceOwnerPortrait(String resourceOwnerPortrait) {
		this.resourceOwnerPortrait = resourceOwnerPortrait;
	}

	public Long getResourceSourceId() {
		return resourceSourceId;
	}

	public void setResourceSourceId(Long resourceSourceId) {
		this.resourceSourceId = resourceSourceId;
	}

	public String getResourceSoureceName() {
		return resourceSoureceName;
	}

	public void setResourceSoureceName(String resourceSoureceName) {
		this.resourceSoureceName = resourceSoureceName;
	}

	public Date getCreateTime() {
		return CommonUtils.cloneDate(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = CommonUtils.cloneDate(createTime);
	}

	public Integer getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}

	public Integer getShareNum() {
		return shareNum;
	}

	public void setShareNum(Integer shareNum) {
		this.shareNum = shareNum;
	}

	public Integer getUp() {
		return up;
	}

	public void setUp(Integer up) {
		this.up = up;
	}

	public Integer getDown() {
		return down;
	}

	public void setDown(Integer down) {
		this.down = down;
	}

	public Integer getTotalShareNum() {
		return totalShareNum;
	}

	public void setTotalShareNum(Integer totalShareNum) {
		this.totalShareNum = totalShareNum;
	}

	@Override
	public String getFkId() {
		return this.sharerId.toString();
	}

}
